using TMPro;
using UnityEngine;

public class TextSetter : MonoBehaviour
{
    public void SetText(float value)
    {
        var text = this.GetComponent<TMP_Text>();
        if (text != null)
        {
            text.text = ((int)value).ToString();
        }
    }
}
